inspector/object-tree.c \
inspector/prop-editor.c \
inspector/prop-list.c \
+ inspector/recorder.c \
inspector/resource-list.c \
inspector/selector.c \
inspector/signals-list.c \
inspector/object-tree.h \
inspector/prop-editor.h \
inspector/prop-list.h \
+ inspector/recorder.h \
inspector/resource-list.h \
inspector/selector.h \
inspector/signals-list.h \
inspector/object-hierarchy.ui \
inspector/object-tree.ui \
inspector/prop-list.ui \
+ inspector/recorder.ui \
inspector/resource-list.ui \
inspector/selector.ui \
inspector/signals-list.ui \
#include "object-hierarchy.h"
#include "object-tree.h"
#include "prop-list.h"
+#include "recorder.h"
#include "resource-list.h"
#include "selector.h"
#include "signals-list.h"
{
static GIOExtensionPoint *extension_point = NULL;
+ g_type_ensure (G_TYPE_LIST_STORE);
+
g_type_ensure (GTK_TYPE_CELL_RENDERER_GRAPH);
g_type_ensure (GTK_TYPE_GRAPH_DATA);
g_type_ensure (GTK_TYPE_INSPECTOR_ACTIONS);
g_type_ensure (GTK_TYPE_INSPECTOR_OBJECT_HIERARCHY);
g_type_ensure (GTK_TYPE_INSPECTOR_OBJECT_TREE);
g_type_ensure (GTK_TYPE_INSPECTOR_PROP_LIST);
+ g_type_ensure (GTK_TYPE_INSPECTOR_RECORDER);
g_type_ensure (GTK_TYPE_INSPECTOR_RESOURCE_LIST);
g_type_ensure (GTK_TYPE_INSPECTOR_SELECTOR);
g_type_ensure (GTK_TYPE_INSPECTOR_SIGNALS_LIST);
--- /dev/null
+/*
+ * Copyright (c) 2014 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
+#include "recorder.h"
+
+struct _GtkInspectorRecorderPrivate
+{
+ GListStore *recordings;
+};
+
+G_DEFINE_TYPE_WITH_PRIVATE (GtkInspectorRecorder, gtk_inspector_recorder, GTK_TYPE_BIN)
+
+static void
+gtk_inspector_recorder_class_init (GtkInspectorRecorderClass *klass)
+{
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+ gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/recorder.ui");
+
+ gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorRecorder, recordings);
+}
+
+static void
+gtk_inspector_recorder_init (GtkInspectorRecorder *vis)
+{
+ gtk_widget_init_template (GTK_WIDGET (vis));
+}
+
+// vim: set et sw=2 ts=2:
--- /dev/null
+/*
+ * Copyright (c) 2014 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _GTK_INSPECTOR_RECORDER_H_
+#define _GTK_INSPECTOR_RECORDER_H_
+
+#include <gtk/gtkbin.h>
+
+#define GTK_TYPE_INSPECTOR_RECORDER (gtk_inspector_recorder_get_type())
+#define GTK_INSPECTOR_RECORDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INSPECTOR_RECORDER, GtkInspectorRecorder))
+#define GTK_INSPECTOR_RECORDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INSPECTOR_RECORDER, GtkInspectorRecorderClass))
+#define GTK_INSPECTOR_IS_RECORDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INSPECTOR_RECORDER))
+#define GTK_INSPECTOR_IS_RECORDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_INSPECTOR_RECORDER))
+#define GTK_INSPECTOR_RECORDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INSPECTOR_RECORDER, GtkInspectorRecorderClass))
+
+
+typedef struct _GtkInspectorRecorderPrivate GtkInspectorRecorderPrivate;
+
+typedef struct _GtkInspectorRecorder
+{
+ GtkBin parent;
+} GtkInspectorRecorder;
+
+typedef struct _GtkInspectorRecorderClass
+{
+ GtkBinClass parent;
+} GtkInspectorRecorderClass;
+
+G_BEGIN_DECLS
+
+GType gtk_inspector_recorder_get_type (void);
+
+G_END_DECLS
+
+#endif // _GTK_INSPECTOR_RECORDER_H_
+
+// vim: set et sw=2 ts=2:
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<interface domain="gtk40">
+ <object class="GListStore" id="recordings">
+ </object>
+ <template class="GtkInspectorRecorder" parent="GtkBin">
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkPaned">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <child>
+ <object class="GtkListBox" id="visual_box">
+ <property name="visible">True</property>
+ <property name="selection-mode">single</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, child_prop_list);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, signals_list);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, widget_css_node_tree);
+ gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, widget_recorder);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, object_hierarchy);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, object_title);
gtk_widget_class_bind_template_child (widget_class, GtkInspectorWindow, selector);
GtkWidget *style_prop_list;
GtkWidget *classes_list;
GtkWidget *widget_css_node_tree;
+ GtkWidget *widget_recorder;
GtkWidget *object_hierarchy;
GtkWidget *size_groups;
GtkWidget *data_list;
<property name="name">css</property>
</packing>
</child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ </object>
+ <packing>
+ <property name="name">recorder</property>
+ </packing>
+ </child>
<child>
<object class="GtkBox">
<property name="visible">1</property>
<property name="title" translatable="yes">CSS</property>
</packing>
</child>
+ <child>
+ <object class="GtkInspectorRecorder" id="widget_recorder">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="name">recorder</property>
+ <property name="title" translatable="yes">Recorder</property>
+ </packing>
+ </child>
<child>
<object class="GtkInspectorVisual">
<property name="visible">True</property>